home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
dropfile
/
dragdrop.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-04-08
|
838b
|
43 lines
unit Dragdrop;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Dropfile, ExtCtrls;
type
TForm1 = class(TForm)
DropFile1: TDropFile;
Memo1: TMemo;
Panel1: TPanel;
ComboBox1: TComboBox;
procedure DropFile1DropFile(Sender: TObject);
procedure ComboBox1Change(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.DropFile1DropFile(Sender: TObject);
begin
combobox1.items := dropfile1.filelist;
combobox1.itemindex := 0;
combobox1change(self);
end;
procedure TForm1.ComboBox1Change(Sender: TObject);
begin
memo1.lines.loadfromfile(combobox1.items[combobox1.itemindex]);
end;
end.